import request from '@/utils/back-request';
//报告预览
export function queryReports(data) {
  return request({
    url: '/api-career/common/report/career/queryReports',
    method: 'post',
    data
  });
}
//生成报告
export function createReports(data) {
  return request({
    url: '/api-career/common/report/career/createReports',
    method: 'post',
    data
  });
}

//模糊搜索条件(只查职业)
export function matchPositionList(data) {
  return request({
    url: '/api-career/data/center/customer/matchPositionList',
    method: 'post',
    data
  });
}
//收藏视频列表
export function campusCollectVideos(data) {
  return request({
    url: '/api-career/campus/collect/videos',
    method: 'post',
    data
  });
}
//收藏案例列表
export function campusCollectFiles(data) {
  return request({
    url: '/api-career/campus/collect/files',
    method: 'post',
    data
  });
}
// 修改用户简历名称
export function updateResumeName(data) {
  return request({
    url: '/api-career/resume/attachment/update',
    method: 'post',
    data
  });
}
// 删除简历
export function removeResume(data) {
  return request({
    url: '/api-career/resume/attachment/remove',
    method: 'post',
    data
  });
}
// 删除简历
export function addResume(data) {
  return request({
    url: '/api-career/resume/attachment/add',
    method: 'post',
    data
  });
}
// 获取在线简历内容
export function previewResume(data) {
  return request({
    url: '/api-career/resume/get/preview',
    method: 'post',
    data
  });
}
// 获取用户简历附件列表
export function attachmentList(data) {
  return request({
    url: '/api-career/resume/get/attachment/list',
    method: 'post',
    data
  });
}
// 获取简历解析结果状态
export function analysisResult(data) {
  return request({
    url: '/api-career/resume/get/analysis/result',
    method: 'post',
    data
  });
}
// 解析简历并保持覆盖在线简历
export function dealAnalysisResume(data) {
  return request({
    url: '/api-career/resume/deal/analysis',
    method: 'post',
    data
  });
}
// 自动注册并且返回person_id
export function autoRegister(data) {
  return request({
    url: '/api-career/zt/saas/auto/regist',
    method: 'post',
    data
  });
}
export function getPersonIdByOAId(data) {
  return request({
    url: '/api-career/zt/getPersonId',
    method: 'post',
    data
  });
}
//职业关联视频
export function campusVideos(data) {
  return request({
    url: "/api-career/campus/videos",
    method: "post",
    data,
  });
}
//新增/取消收藏
export function campusCollect(data) {
  return request({
    url: "/api-career/campus/collect",
    method: "post",
    data,
  });
}
